alert('SceneLogoFYW.js loaded');

function SceneLogoFYW() {

};

SceneLogoFYW.prototype.initialize = function () {
	alert("SceneLogoFYW.initialize()");
	// this function will be called only once when the scene manager show this scene first time
	// initialize the scene controls and styles, and initialize your variables here
	// scene HTML and CSS will be loaded before this function is called
	
	$('#logoFYW').sfImage({
		src:'images/FindYourWayInBkk.jpg'
	});
	
	$('#logoFYW').css('left',ExtractX(2,4));
	$('#logoFYW').css('top',ExtractY(2,4));
	
	//FADE IN IMAGE
	$('#logoFYW').fadeIn('slow', function() {
		
		
		setTimeout(function () {
				sf.scene.hide('LogoFYW');
		        sf.scene.show('LogoDev');
		        sf.scene.focus('LogoDev');
		}, 2000);


    });
	
	


};

SceneLogoFYW.prototype.handleShow = function (data) {
	alert("SceneLogoFYW.handleShow()");
	// this function will be called when the scene manager show this scene
};

SceneLogoFYW.prototype.handleHide = function () {
	alert("SceneLogoFYW.handleHide()");
	// this function will be called when the scene manager hide this scene
};

SceneLogoFYW.prototype.handleFocus = function () {
	alert("SceneLogoFYW.handleFocus()");
	// this function will be called when the scene manager focus this scene
};

SceneLogoFYW.prototype.handleBlur = function () {
	alert("SceneLogoFYW.handleBlur()");
	// this function will be called when the scene manager move focus to another scene from this scene
};

SceneLogoFYW.prototype.handleKeyDown = function (keyCode) {
	alert("SceneLogoFYW.handleKeyDown(" + keyCode + ")");
	// TODO : write an key event handler when this scene get focued
	switch (keyCode) {
		case sf.key.LEFT:
			break;
		case sf.key.RIGHT:
			break;
		case sf.key.UP:
			break;
		case sf.key.DOWN:
			break;
		case sf.key.ENTER:
			break;
		default:
			alert("handle default key event, key code(" + keyCode + ")");
			break;
	}
};
